<?php
/**
 * Share your mailbox to other user or groups
 * 
 * 
 */

use Fox\Html\Html;
use Fox\Popup;
use Fox\Generator;
use Fox\Html\Wrapper;
use Fox\Html\Screen;

$xview = Xview::instance();
$inlineid = $xview->val('inlineid');




$wrapper = new Wrapper('wShare');
$wrapper->add(new Html('help','<p class="prettyprint">'.Msg(Orx\Mailer\Messages::BUNDLE,Orx\Mailer\Messages::SHARING_YOUR_MAILBOX_HELP).'</p>'));
// User Grid
$grid = $xview->module(Generator::url('messages','mailbox','shared_users',array('inlineid' => $inlineid)));

$wrapper->add($grid);
// User Groud Grid
// @TODO
$popup = new Popup('pShared',
					Msg(Orx\Mailer\Messages::BUNDLE,Orx\Mailer\Messages::SHARING_YOUR_MAILBOX_TITLE),
					$wrapper,
					650);
return $popup->display();